import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)
const store = new Vuex.Store({
	state: {
		userName: '',
	},
	getters: {
		userName: (state) => state.userName,
	},
	mutations: {
		setUserName(state, userName) {
			state.userName = userName
		},
	},
	actions: {}
})
export default store
